<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{margin: 0;padding: 0}    
        div{
            width: 500px;
            height: 500px;
            background-color: antiquewhite;
            background-image: url("images/icon1.png");
            /* 背景重复
               background-repeat:no-repeat |repeat-x|repeat-y */
                background-repeat: no-repeat;
            /*  背景位置
             backgtound-position-x:横坐标方向的位置
             backgtound-position-y:纵坐标方向的位置
            //传参 top,right,bottom,left,center    */
           
            /* 背景简写
               background-position:x y; */ 
          background-position:center center;
          
          margin-left: auto;margin-right: auto;
        }
    </style>
</head>
<body>
    <div>

    </div>
</body>
</html>